Microsoft DirectX 8.1 (C++)

AMGetWideString

Copies a wide-character string, and allocates memory for the copy. Call CoTaskMemFree to free the returned string.

Syntax

STDAPI AMGetWideString(
    LPCWSTR pszString,
    LPWSTR *ppszReturn
);

Parameters

pszString

Pointer to the source string to copy.

ppszReturn

Address of a variable that receives the copy of pszString.

Return Value

Returns an HRESULT value.

Value Description
S_OK Successful.
E_OUTOFMEMORY Insufficient memory.
E_POINTER NULL pointer argument.

See Also